package org.ohuyo.libra.server.model.table;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Index;

/**
 * ��תƱ�ݼ�¼��
 * 
 * @author rabbit
 * @time ����04:54:41 2009-10-10
 */
@Entity
@Table(name = "T_JUMP_TICKET")
@org.hibernate.annotations.Table(appliesTo = "T_JUMP_TICKET", indexes = { @Index(name = "idx_jump_ticket1", columnNames = { "expiry_time" }) })
public class JumpTicketRecord implements Serializable {

	/**
     *
     */
	private static final long serialVersionUID = -5937602786618615696L;
	/**
	 * ��תƱ��
	 */
	@Id
	@TableGenerator(name = "t_jump_ticket", table = "t_libra_seq", pkColumnName = "seq_name", pkColumnValue = "t_jump_ticket", valueColumnName = "next_value", initialValue = 0, allocationSize = 100)
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "t_jump_ticket")
	@Column(name = "jump_ticket", nullable = false)
	private Long jumpTicket;
	/**
	 * ��½Ʊ��
	 */
	@Column(name = "login_ticket", nullable = false)
	private Long loginTicket;

	/**
	 * �ͻ���Ʊ��(��Ӧ��������תʱ����Ҫ���һ��Ʊ�ݴ��ݸ���Ӧ�ã�
	 */
	@Column(name = "client_ticket", nullable = false)
	private Long clientTicket;

	/**
	 * Ӧ�ô���
	 */
	@Column(name = "APP_CODE", columnDefinition = "varchar(20)", nullable = false)
	private String appCode;

	/**
	 * ����ʱ��
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "expiry_time", nullable = false)
	private Date expiryTime;

	public Long getJumpTicket() {
		return jumpTicket;
	}

	public void setJumpTicket(Long jumpTicket) {
		this.jumpTicket = jumpTicket;
	}

	public Long getLoginTicket() {
		return loginTicket;
	}

	public void setLoginTicket(Long loginTicket) {
		this.loginTicket = loginTicket;
	}

	public String getAppCode() {
		return appCode;
	}

	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

	public Date getExpiryTime() {
		return expiryTime;
	}

	public void setExpiryTime(Date expiryTime) {
		this.expiryTime = expiryTime;
	}

	/**
	 * @param clientTicket
	 *            the clientTicket to set
	 */
	public void setClientTicket(Long clientTicket) {
		this.clientTicket = clientTicket;
	}

	/**
	 * @return the clientTicket
	 */
	public Long getClientTicket() {
		return clientTicket;
	}

}
